package com.abel.singleton.hugury;

/**
 * @author xiachao
 * @date 2019/1/22
 */
public class HugurySingleton {

    private static HugurySingleton instance;

    private HugurySingleton(){}

    public static HugurySingleton getInstance(){
        if(instance == null){
            synchronized (HugurySingleton.class){
                if(instance == null){
                    instance = new HugurySingleton();
                }
            }
        }
        return instance;
    }
}
